﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//using Pibby.Core.PortableMedia;

//namespace Pibby.Core.Tests
//{
//    [TestClass]
//    public class PortableMediaDeviceTests
//    {
//        [TestMethod]
//        public void deviceCanBeMappedToAnyDriveLetter()
//        {
//            PortableMediaDevice device = new PortableMediaDevice();

//            device.Folder = "Podcasts";

//            device.DriveName = "G:\\";
//            Assert.IsTrue(System.IO.Path.IsPathRooted(device.Path), "Device does not have a root for the path");
//            Assert.AreEqual("G:\\Podcasts", device.Path, "Path not set correctly");

//            device.DriveName = "H:\\";
//            Assert.IsTrue(System.IO.Path.IsPathRooted(device.Path), "Device does not have a root for the path");
//            Assert.AreEqual("H:\\Podcasts", device.Path, "Path not set correctly");
//        }

//        [TestMethod]
//        public void SaveToPath_SplitOptionOff_FilesInRootFolder()
//        {
//            PortableMediaDevice device = new PortableMediaDevice ();

//            device.Folder = "Podcasts";
//            device.DriveName = "G:\\";

//            device.Organization = OrganizationOption.Flat;

//            string suggestedPath = device.SuggestPathUsing("NewSubFolder");

//            Assert.AreEqual(device.Path, suggestedPath);
//        }

//        [TestMethod]
//        public void SaveToPath_SplitOptionOn_FilesInSubFolder()
//        {
//            PortableMediaDevice device = new PortableMediaDevice();

//            device.Folder = "Podcasts";
//            device.DriveName = "G:\\";

//            device.Organization = OrganizationOption.Split;

//            string suggestedPath = device.SuggestPathUsing("NewSubFolder");

//            Assert.AreEqual(System.IO.Path.Combine (device.Path, "NewSubFolder"), suggestedPath);
//        }
	 
//    }
//}
